package com.ruoyi.emergencyplan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.emergencyplan.mapper.EpResourceTeamManageMapper;
import com.ruoyi.emergencyplan.domain.EpResourceTeamManage;
import com.ruoyi.emergencyplan.service.IEpResourceTeamManageService;

/**
 * 应急资源——小组管理Service业务层处理
 * 
 * @author hcc
 * @date 2023-12-17
 */
@Service
public class EpResourceTeamManageServiceImpl implements IEpResourceTeamManageService 
{
    @Autowired
    private EpResourceTeamManageMapper epResourceTeamManageMapper;

    /**
     * 查询应急资源——小组管理
     * 
     * @param id 应急资源——小组管理主键
     * @return 应急资源——小组管理
     */
    @Override
    public EpResourceTeamManage selectEpResourceTeamManageById(String id)
    {
        return epResourceTeamManageMapper.selectEpResourceTeamManageById(id);
    }

    /**
     * 查询应急资源——小组管理列表
     * 
     * @param epResourceTeamManage 应急资源——小组管理
     * @return 应急资源——小组管理
     */
    @Override
    public List<EpResourceTeamManage> selectEpResourceTeamManageList(EpResourceTeamManage epResourceTeamManage)
    {
        return epResourceTeamManageMapper.selectEpResourceTeamManageList(epResourceTeamManage);
    }

    /**
     * 新增应急资源——小组管理
     * 
     * @param epResourceTeamManage 应急资源——小组管理
     * @return 结果
     */
    @Override
    public int insertEpResourceTeamManage(EpResourceTeamManage epResourceTeamManage)
    {
        return epResourceTeamManageMapper.insertEpResourceTeamManage(epResourceTeamManage);
    }

    /**
     * 修改应急资源——小组管理
     * 
     * @param epResourceTeamManage 应急资源——小组管理
     * @return 结果
     */
    @Override
    public int updateEpResourceTeamManage(EpResourceTeamManage epResourceTeamManage)
    {
        return epResourceTeamManageMapper.updateEpResourceTeamManage(epResourceTeamManage);
    }

    /**
     * 批量删除应急资源——小组管理
     * 
     * @param ids 需要删除的应急资源——小组管理主键
     * @return 结果
     */
    @Override
    public int deleteEpResourceTeamManageByIds(String[] ids)
    {
        return epResourceTeamManageMapper.deleteEpResourceTeamManageByIds(ids);
    }

    /**
     * 删除应急资源——小组管理信息
     * 
     * @param id 应急资源——小组管理主键
     * @return 结果
     */
    @Override
    public int deleteEpResourceTeamManageById(String id)
    {
        return epResourceTeamManageMapper.deleteEpResourceTeamManageById(id);
    }
}
